package com.bidevalution.business.vote.service;

import com.bidevalution.business.exception.VoteException;
import com.bidevalution.business.vote.vi.AutoVoteJobVi;
import com.bidevalution.business.vote.vi.CallStepJobVi;
import com.bidevalution.dao.entity.BeAutoVoteConfig;
import com.bidevalution.dao.entity.CheckJob;
import com.bidevalution.dao.enums.VoteLocationEnum;

import java.util.List;

/**
 * Be_Auto_Vote 表相关服务service
 */
public interface BeAutoVoteConfigService {
    List<BeAutoVoteConfig> findBeAutoVotesByVoteLocation(VoteLocationEnum voteLocationEnum);

    /**
     * 运行自动表决
     * @param voteLocationEnum
     * @param autoVoteJobVi
     * @throws VoteException
     */
    void launchAutoVote(VoteLocationEnum voteLocationEnum, AutoVoteJobVi autoVoteJobVi);
}
